<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>邮件模板管理</em></a><span>|</span><a href='<?php echo U('user/tpl_add');?>' ><em>添加邮件模板</em></a>    </div>
</div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0">
      <thead>
				<tr>
				<th width="100">ID</th>
				<th width="200" align="left" >模板标识</th>
				<th width="200" align="left" >模板名</th>
				<th >管理操作</th>
				</tr>
      </thead>
     <tbody>
        <?php 
        if(isset($tplList) && $tplList):
        	foreach ($tplList as $v):
        ?>
			<tr>
				<td align="center"><?php echo $v['id']?></td>
				<td><?php echo $v['path_alias']?></td>
				<td><?php echo $v['name']?></td>
				<td align="center">
				<a href="<?php echo U('user/tpl_edit', 'tpl_id='.$v['id']);?>">修改</a> | 
				<a href="javascript:confirmurl('<?php echo U('user/tpl_delete','tpl_id='.$v['id'])?>', '是否删除该模板?')">删除</a>
				</td>
			</tr>
			<?php 
					endforeach;
				endif;
			?>
		</tbody>
	</table>
</div>
</div>
</body>
</html>
